The modern (xkb) way of mapping the AltGr key (113) seems to be using
the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete
Mode_switch keysym (0xFF7E).
This patch let the "keysym to scancode" translator handle the
ISO_Level3_Shift correctly, enabling the use of characters like
~#{[|`\^@]} on a french keyboard.
From: Cedric Schieli <cschieli@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Alt_R 0xb8
Mode_switch 0xb8
+ISO_Level3_Switch 0xb8
Alt_L 0x38
Control_R 0x9d
{"Shift_R", 0xffe2}, /* XK_Shift_R */
{"Super_L", 0xffeb}, /* XK_Super_L */
{"Super_R", 0xffec}, /* XK_Super_R */
+{"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */
/* special keys */
{"BackSpace", 0xff08}, /* XK_BackSpace */